package org.example.thread.thread01;

/**
 * @Auther:Liu
 * @Testname:Deom01
 * @Date:2025/8/14 9:39
 */
public class Deom01 extends Thread {
    @Override
    public void run() {
        String name = Thread.currentThread().getName();
        for (int i = 0; i < 10; i++) {
            System.out.println("当前线程的名字是:"+name+"，执行了第"+i+"次");
        }
    }
}
